// 用户相关的接口
import request from "@/utils/request";
import type { loginForm, loginReqData, userReqInfoData } from "./type";

enum API {
  LOGIN_URL = "/user/login",
  USERINFO_URL = "/user/info",
}
export const Login = (data: loginForm) => request.post<any, loginReqData>(API.LOGIN_URL, data);

export const getUserInfo = () => request.get<any, userReqInfoData>(API.USERINFO_URL);
